import request from '@/utils/request'

// 查询火车出入场记录列表
export function listTrain_in_out_record(query) {
  return request({
    url: '/system/train_in_out_record/list',
    method: 'get',
    params: query
  })
}

// 查询火车出入场记录详细
export function getTrain_in_out_record(id) {
  return request({
    url: '/system/train_in_out_record/' + id,
    method: 'get'
  })
}

// 新增火车出入场记录
export function addTrain_in_out_record(data) {
  return request({
    url: '/system/train_in_out_record',
    method: 'post',
    data: data
  })
}

// 修改火车出入场记录
export function updateTrain_in_out_record(data) {
  return request({
    url: '/system/train_in_out_record',
    method: 'put',
    data: data
  })
}

// 删除火车出入场记录
export function delTrain_in_out_record(id) {
  return request({
    url: '/system/train_in_out_record/' + id,
    method: 'delete'
  })
}
